var status = -1;
var selectionLog = new Array();

function action(d, c, b) {
    if (status == 0 && d == 0) {
        ms.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        ms.dispose()
    } else {
        if (status === a++) {
            cm.getMap().startSimpleMapEffect("斯库亚斯市区战斗开始。", 5120180);
            cm.updateInfoQuest(64271, "5=1");
            cm.spawnMobLimit(9402270, 1, -1050, 615, 1);
            cm.spawnMobLimit(9402300, 1, 300, 439, 1);
            cm.Hidden_background("explode00", 1, 0, 2, 0);
            cm.Hidden_background("explode01", 1, 0, 2, 0);
            cm.Hidden_background("explode02", 1, 0, 2, 0);
            cm.onTeleport(0, 3, cm.getPlayer().getId(), -189, 436);
            cm.updateInfoQuest(64201, "event1_camera=1;event1_wall=1");
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, false, false);
            cm.inGameDirectionEvent_MoveAction(0);
            cm.inGameDirectionEvent_PushScaleInfo(1500, 1000, 1500, -235, 375)
        } else {
            if (status === a++) {
                cm.inGameDirectionEvent_AskAnswerTime(1000)
            } else {
                if (status === a++) {
                    cm.setInGameDirectionMode(false, true, false);
                    cm.curNodeEventEnd(true);
                    cm.getPlayer().scheduleOpenNpcTask(30, 74, "莫奈德_传送点提示");
                    cm.getPlayer().scheduleOpenNpcTask(35, 75, "莫奈德_传送点提示");
                    cm.getPlayer().scheduleOpenNpcTask(60, 76, "莫奈德_传送点提示");
                    cm.getPlayer().scheduleOpenNpcTask(65, 77, "莫奈德_传送点提示");
                    cm.getPlayer().scheduleOpenNpcTask(90, 78, "莫奈德_传送点提示");
                    cm.getPlayer().scheduleOpenNpcTask(95, 79, "莫奈德_传送点提示");
                    ms.dispose()
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};